package com.woniu.commons.feign;

import com.woniu.commons.response.ResponseResult;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

import java.util.List;

@FeignClient(name = "auth",path = "/user")
public interface FeignAuthService {
    //根据token获取用户权限
    @GetMapping("/findPerms/{token}")
    ResponseResult<List<String>> findPerms(@PathVariable("token") String token);

}
